<div class="page">
		<div class="sidebar_page">
			<!--Content start (.sidebar_page)-->
			<div class="content">
                            {foreach from=$singlePost item='currentPost'}
				<div id="articles">
					<div class="page_capt clearfix">
						<div class="fl_left">
							<h2>{$currentPost.naslov}</h2>
						</div>
						<div class="fl_right filter_opt">
							<p class="tRight red"><em>Objavljeno: {$currentPost.datum|date_format:"%d.%m.%Y"}</em></p>
							<p class="tRight red"><em>Autor: {$currentPost.username}</em></p>
							<br />
							<div id="share_this_block">
								<span  class='st_facebook_button' displayText='Facebook'></span><span  class='st_twitter_button' displayText='Tweet'></span><span  class='st_digg_button' displayText='Digg'></span>
							</div>
						</div>
					</div>
					
					<div class="clearfix page_body" id="single_post">
						{$currentPost.tekst}
					</div><!--end of .page_body-->
				</div>
                            {/foreach}                    
				
				<!-- Page bottom blocks -->
				<div class="cols3spanL" id="botom_boxes">
					<div class="col">
						<div id="comments">
							<h2>Komentari</h2>
                                                        {foreach from=$numberOfComments item='numOfcomment'}
							<p>Ukupno {$numOfcomment} komentara.</p>
                                                        {/foreach}
							<ul>
								{foreach from=$commentMessages item='commentMessage'}
                                                                <li class="clearfix" id="comment-id-">
									<img class="fl_left" src="{if $commentMessage.slika!=''}{$media}/autori/{$commentMessage.username}/slike_za_profil/{$commentMessage.slika}{else}{$media}/images/user_img.png{/if}" width="40" height="40" />
									<span><a class="comment_aut" href="{$url}/?page=profil&clan_id={$commentMessage.clan_id}">{$commentMessage.username}</a> </span>{$commentMessage.komentar}
									<div>{$commentMessage.datum_vreme_upisa}</div>
								</li>
								{/foreach}
							</ul>
							<h2 id="addCommentPage">Dodajte komentar</h2>
						{if $userIsLogged}
                                                    
                                                    
                                                        <form id="comments_form" name="comments_form" action="handlers/commentinput.php?redirectUrl={$currentPage}" method="post">
								<label for="comment_content">Komentar:</label><br />
								<textarea id="comment_content" name="komentar" cols="" rows="4"></textarea>
								<p class="tRight"><input id="comment_submit" name="comment_submit" type="submit" value="Dodaj komentar" /></p>
									<input name="username" type="hidden" value="{$user.username}" />
									<input name="p" type="hidden" value="{$currentPost.id}" />
							</form>
						{else}
							<h3>Ulogujte se kako bi dodali komentar. Hvala.</h3>
							<br />
							<p><a class="red" href="#account_box">Prijavi se</a> | <a class="red" href="{$url}/?page=registracija">Registruj se</a></p>	
						{/if}
						</div>
					</div>
					<div class="col">{include file="chat.tpl"}</div>
				</div>
				
			</div>
			<!--Content end (.sidebar_page)-->
			
			<div class="sidebar">{include file="sidebar_banners.tpl"}</div>
		</div>
	</div>